package com.hyg.module_report.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.hyg.lib_common.DataModel.report.V2ReportListDetailData;

public class ReportListData implements Parcelable {
    /*   报告列表 数据模板   */

    private String report_id="";                //报告对应id
    private String report_parient_name = "";    //报告中的病人姓名
    private String report_date = "";            //报告的诊断日期
    private String report_hospital = "";        //报告就诊的所在医院
    public String version="1.0";

    public V2ReportListDetailData detailData;

    public V2ReportListDetailData getDetailData() {
        return detailData;
    }

    public void setDetailData(V2ReportListDetailData detailData) {
        this.detailData = detailData;
    }

    public ReportListData(String report_parient_name, String report_date, String report_hospital){
        this.report_parient_name = report_parient_name;
        this.report_date = report_date;
        this.report_hospital = report_hospital;
        this.version="1.0";
    }
    public ReportListData(String report_id, String report_parient_name, String report_date, String report_hospital){
        this.report_id = report_id;
        this.report_parient_name = report_parient_name;
        this.report_date = report_date;
        this.report_hospital = report_hospital;
        this.version="1.0";
    }

    public ReportListData(String report_id, String report_parient_name, String report_date, String report_hospital,String version,V2ReportListDetailData detailData){
        this.report_id = report_id;
        this.report_parient_name = report_parient_name;
        this.report_date = report_date;
        this.report_hospital = report_hospital;
        this.version=version;
        this.detailData=detailData;
    }


    protected ReportListData(Parcel in) {
        report_id = in.readString();
        report_parient_name = in.readString();
        report_date = in.readString();
        report_hospital = in.readString();
        version = in.readString();
        detailData = in.readParcelable(V2ReportListDetailData.class.getClassLoader());
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(report_id);
        dest.writeString(report_parient_name);
        dest.writeString(report_date);
        dest.writeString(report_hospital);
        dest.writeString(version);
        dest.writeParcelable(detailData, 0);
    }


    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ReportListData> CREATOR = new Creator<ReportListData>() {
        @Override
        public ReportListData createFromParcel(Parcel in) {
            return new ReportListData(in);
        }

        @Override
        public ReportListData[] newArray(int size) {
            return new ReportListData[size];
        }
    };

    public String getReport_id() {
        return report_id;
    }

    public void setReport_id(String report_id) {
        this.report_id = report_id;
    }

    public String getReport_parient_name() {
        return report_parient_name;
    }

    public void setReport_parient_name(String report_parient_name) {
        this.report_parient_name = report_parient_name;
    }

    public String getReport_date() {
        return report_date;
    }

    public void setReport_date(String report_date) {
        this.report_date = report_date;
    }

    public String getReport_hospital() {
        return report_hospital;
    }


    public void setReport_hospital(String report_hospital) {
        this.report_hospital = report_hospital;
    }
}
